#ifndef MELODYEVALUATOR_H
#define MELODYEVALUATOR_H

#include "FitnessEvaluator.h"
#include <stdlib.h>

class MelodyEvaluator : public FitnessEvaluator
{
public:
    MelodyEvaluator(float targetValue,int generationLimit,const float tonality[12][12]);
    virtual float getFitness(Candidate*);
    void setTonality(const float tonality[12][12]);
protected:
    virtual Candidate* finalize(Candidate*);
    float tonality[12][12];
};

#endif // MELODYEVALUATOR_H
